export enum DataString {
  Cookie = "Cookie",
  Cache = "Service Worker & Cache Storage",
  lStor = "localStorage",
  sStor = "sessionStorage",
  indexedDB = "indexedDB",
}

export enum DataType {
  Cache = 1,
  lStor = 2,
  Cookie = 4,
  sStor = 8,
  indexedDB = 16,
}

export function hint(item: string, type: number) {
  switch (type) {
    case 0: {
      return `选择确定清理 ${item} 数据
------
`;
    }
    case 1: {
      return `${item} 获取失败`;
    }
    case 2: {
      return `${item} 清理失败`;
    }
    case 3: {
      return `查看 ${item} 数据`;
    }
    default: {
      return item;
    }
  }
}

export const empty = "[空]";

export const titleFont = {
  fontSize: 15,
};

export const buttonFont = {
  fontSize: 14,
};

export const firstDlg = { zIndex: 999_999_999 };

export const secondDlg = { zIndex: 1_000_000_000 };

export const codeStyle: React.CSSProperties = {
  wordBreak: "break-all",
  whiteSpace: "pre-wrap",
  fontSize: 13,
  fontWeight: 700,
};
